import {createApp} from 'vue'
import {setupRouter} from './router'
import {setupStore} from './store'
import App from './App.vue'
import "@/styles/index.less"
import 'virtual:svg-icons-register'
import '@layui/layui-vue/lib/index.css';
import layer from "@layui/layer-vue";
import directive from '@/directives/index'


async function setupApp() {
    const app = createApp(App);
    setupStore(app);
    app.use(layer);
    directive(app);
    await setupRouter(app);
    app.mount('#app');
}

setupApp();
